/*
day153_2
2020.1.28
*/
#include<string>
#include<vector>
using namespace std;

class Solution {
public:
	struct Node{
		int index;
		string str;
	};
	Node getword(int index,const string &text)
	{
		Node node;
		int end=index;
		if(index>=text.size())
		{
			node.index=index;
			node.str="";
			return node;
		}
		
		while(end!=text.size()&&text[end]!=' ')
		{
			end++;
		}
		
		node.index=end+1;
		node.str=text.substr(index,end-index);
		
		return node;
		
	}
	
    vector<string> findOcurrences(string text, string first, string second) 
	{
		vector<string> res;
        int index=0;
        Node node1,node2;
        while(index<text.size())
        {
        	node1=getword(index,text);
        	if(node1.str==first)
        	{
        		node2=getword(node1.index,text);
        		if(node2.str==second)
        		{
        			
				}
				else
				{
					
				}
			}
			else
			{
				
			}
		}
    }
};

int main()
{
	return 0;
}
